﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" Inherits="Nivdal.AllUserNews" 
Title="" StylesheetTheme="SkinFile" Codebehind="AllUserNews.aspx.cs" %>

<asp:Content ID="Content3" ContentPlaceHolderID="PageNamePlaceHolder" Runat="Server">
    <asp:Label ID="PageNameLabel" runat="server" Text="<%$ Resources:Resource, AllUserNews_PageNameLabel %>" CssClass="PageNameContentStyle"></asp:Label>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <div class="basic_element">
    <div class="red_title">
       <asp:Label ID="TitleLabel" runat="server" Text="<%$ Resources:Resource, AllUserNews_TitleLabel %>" CssClass="white_title"></asp:Label>
    </div>
    <div class="padding5">
    <br />
    <asp:ListView ID="NewsListView" runat="server" DataSourceID="LatestNewsDataSourse">
        <LayoutTemplate>
            <asp:Label ID="itemPlaceholder" runat="server"></asp:Label>
        </LayoutTemplate>
        <ItemTemplate>
            <table>
                <tr>
                    <td>
                        <asp:Label ID="TimeLabel" runat="server" Text='<%# Eval("Date") %>' CssClass="NewsDateStyle"></asp:Label>
                        &nbsp;
                        <asp:Image ID="NewIcon" runat="server" ImageUrl="~/Images/Icons/New_icons_32.gif" Visible='<%# Eval("New") %>' ToolTip="<%$ Resources:Resource, Global_New %>" AlternateText="<%$ Resources:Resource, Global_New %>"/>
                    </td>
                    <td style="padding-left:15px;">
                        <asp:Label ID="Label1" runat="server" Text='<%# Eval("NewsItem") %>' CssClass="NewsItemStyle"></asp:Label>
                    </td>                    
                </tr>
            </table>
        </ItemTemplate>
    </asp:ListView>
    </div>
    </div>
    <asp:SqlDataSource ID="LatestNewsDataSourse" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
    SelectCommand="Nivdal_GetAllLatestNewsForUser" SelectCommandType="StoredProcedure"></asp:SqlDataSource>
</asp:Content>


